<div class="cart_title"><div class="cart_title_content"><a href="download.html">TẢI TÀI LIỆU, DRIVERS</a>  {if $is_admin}[ <a href="document.html">Quản lý tài liệu</a> ]{/if}</div></div>

<div class="cart_item_content"> 
  <table width="100%" cellspacing="1" cellpadding="5"  bgcolor="#cccccc" border="0">
        <tr  bgcolor="#Ffffff">
            <td width="13%" align="right" height="30"><strong><span style="color:#575A5D">T&#7915; kh&oacute;a:</span></strong></td>
            <td align="left"><input name="key_word" type="text" id="key_word" value="{$key_word}"/>              <span style="padding:10px">
              <input name="submit" type="submit" class="button" value="Tìm tài liệu" id="submit" />
            </span></td>
        </tr>
    </table>
	{$msg}
    {if $documents}
        <table width="100%" border="0" cellpadding="5" cellspacing="1" align="center" bgcolor="#cccccc">
          <tr align="left"  bgcolor="#F3F3F3">
                <td align="left"><strong>Tên tài liệu</strong>                        </td>
            <td width="100" align="center"><strong>Cập nhật</strong>                        </td>
            <td width="50" align="center"><strong>Lượt tải</strong><strong></strong></td>
            </tr>
              {foreach from=$documents item=item}
          <tr valign="middle" bgcolor="#FFFFFF">
                    <td valign="middle">
                    
                    &raquo; <a href="{$item.document_detail}" target="_blank" onMouseOver = "showtip('{$item.des}')" onMouseOut="hidetip()">{$item.title}</a>
                    {if $is_admin}
                        <span class="fr mr10">
                            <span class="ml10">{$item.change}</span> <span class="ml10">{$item.edit}</span> <span class="ml10">{$item.delete}</span>
                        </span>
                    {/if}                            
                    </td>
            <td width="100" align="center">{$item.time_m}</td>
            <td width="50" align="center">{$item.down_num}</td>
            </tr> 
              {/foreach}
      </table>
      <hr />
        <div style="padding:10px;" align="right">
             {$paging}
        </div>
    {else}
    	<div style="padding:20px;color:#f00;font-size:18px" align="center">
        	Không tìm thấy tài liệu nào!
        </div>
	{/if}
</div>